package edu.pku.sei.transformation.editor.views.figures;

import org.eclipse.draw2d.Label;
import org.eclipse.draw2d.MarginBorder;
import org.eclipse.draw2d.RoundedRectangle;
import org.eclipse.draw2d.ToolbarLayout;
import org.eclipse.draw2d.geometry.Dimension;

public class RuleExecutionFigure extends RoundedRectangle {
	private Label name = new Label("ruleexe");
	private Label description = new Label("des");

	public RuleExecutionFigure() {
		this.setCornerDimensions(new Dimension(15, 15));
		this.setLayoutManager(new ToolbarLayout());
		this.setBorder(new MarginBorder(5));

		name.setFont(FontConstant.ARIAL_10_B);
		this.add(name);

		description.setFont(FontConstant.ARIAL_8);
		this.add(description);
	}

	public void setName(String s) {
		name.setText(s);
	}

	public void setDescription(String s) {
		this.description.setText(s);
	}

}
